package sentData;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Lecture implements Serializable{

	private static final long serialVersionUID = -8864954476036930263L;

    private Course course;
	private int date;
	private List<Vote> votes;

	public Lecture(Course course, int date, List<Vote> votes) {
		super();
		this.course = course;
		this.date = date;
		this.votes = votes;
	}
	
	public List<Vote> getVotes() {
		return votes;
	}

	public void setVotes(List<Vote> votes) {
		this.votes = votes;
	}
	
	public int getDate() {
		return date;
	}

	public void setDate(int date) {
		this.date = date;
	}
	
	public String toString() {
		String result = "lecture: " + date+"(";
		for(Vote v : votes) {
			result += v+",";
		}
		result += ")";
		return result;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

}
